﻿create procedure [dbo].[usp_IIdentityDelete]
	@IIdentityId int
as

begin try
	begin transaction
	
	delete from [dbo].[IIdentity] where [IIdentityId] = @IIdentityId
	
	commit transaction
end try

begin catch
	if @@trancount > 0
	begin
		rollback transaction
	end
	execute [dbo].[usp_SqlErrorInsert]
end catch